package club.dmyang.service;

import club.dmyang.dao.UserMapper;
import club.dmyang.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by brss on 2018/7/18.
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    /**
     * 根据用户名查找用户
     *
     * @return
     */
    @Override
    public User findByUsername(String username) {
        return userMapper.selectByUsername(username);
    }
}
